<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
	        <li><a href="{:U('AdminSpec/index')}">商品类型管理</a></li>
			<li class="active"><a href="{:U('AdminSpec/add')}">添加商品类型</a></li>
	    </ul>
		<form action="{:U('AdminSpec/add_post')}" method="post" class="form-horizontal js-ajax-form" enctype="multipart/form-data">
			<div class="tabbable">
		        <div class="tab-content">	          
						<fieldset>							
							<div class="control-group">
								<label class="control-label">规格名称</label>
								<div class="controls">
									<input type="text" name="spec_name" value=""><span class="form-required">*</span>
								</div>
							</div>							
							<div class="control-group">
								<label class="control-label">所属商品类型</label>
								<div class="controls">
									<select name="type_id" id="">
										<option value="">请选择</option>
										<foreach name="typelist" item="vo">
										<option value="{$vo.id}">{$vo.name}</option>
										</foreach>
									</select><span class="form-required">*</span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">可选规格</label>
								<div class="controls">
									<textarea name="item" id="" cols="30" rows="5"></textarea><span class="form-required"> *一行代表一个值</span>
								</div>
							</div>
							
						</fieldset>	          
		        </div>
		    </div>
			
		    <div class="form-actions">
		     	<button class="btn btn-primary js-ajax-submit"type="submit">{:L('ADD')}</button>
		      	<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
		    </div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>